import { createStore } from "vuex";
import Cache from "@/utils/Cache";
export default createStore({
  state: {
    account: Cache.getItem("account"),
  },
  mutations: {
    setAccount(state, value) {
      state.account = value;
      Cache.saveItem("account", state.account);
    },
  },
  actions: {},
  modules: {},
});
